var express = require('express');
var router = express.Router();
var userApi = require('./user.js');

router.post('/user/register', userApi.register);  // 注册
router.post('/user/login', userApi.login);  // 登录
router.get('/user/info', userApi.getUserinfo);  //获取用户信息
router.get('/logout', userApi.logout);  // 退出


module.exports = router;
